;; turn off menu bar for each frame
(menu-bar-mode -1)

;; show line numbers
(global-linum-mode)
;; Don't show native os scroll bars for buffer
(when (fboundp 'scorll-bar-mode)
  (scroll-bar-mode -1))

;; Color themes
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(add-to-list 'load-path "~/.emacs.d/themes")

;; set background color, this may influence the behavor of theme which has both dark and light mode. such solarized

;;(set-frame-parameter nil 'background-mode 'light)
;;(set-terminal-parameter nil 'background-mode 'light)
(set-frame-parameter nil 'background-mode 'dark)
(set-terminal-parameter nil 'background-mode 'dark)

;; load theme
;; (load-theme 'solarized t)
(load-theme 'tomorrow-night-eighties t)
;;(load-theme 'tango-dark t)
;;(load-theme 'tomorrow-night-bright t)

;; set the width and height when emacs start
(setq initial-frame-alist '((width . 120) (height . 40)))

;; make copy and paste avialible with system clipboard
(setq x-select-enable-clipboard t
      x-select-enable-primary t
      save-interprogram-paste-before-kill t
      apropos-do-all t
      mouse-yank-at-point t)

;; Cursor blinkin, 0 to turn-off, and 1 to turn-on
(blink-cursor-mode 1)

;; full path in title bar
(setq-default frame-title-format "%b (%f)")

;; don't pop up font menu
;; ? unkown 
;;(global-set-key (kbd "s-t") '(lambda () (interactive)))

;; no bell
(setq ring-bell-function 'ignore)
